package com.ysd.twocrm.controller;

import com.ysd.twocrm.entity.Logs;
import com.ysd.twocrm.mapper.LogsMapper;
import com.ysd.twocrm.service.LogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/logs")
public class LogsController {
    @Autowired
    private LogsMapper logsMapper;
    @Autowired
    private LogsService logsService;
    @PostMapping()
    public Object insertLogs(Logs l){
        return logsMapper.insert(l);
    }
    @GetMapping
    public Object getAllLogs(Integer page ,Logs l){

        return logsService.LOGS_LAYUI_UTILS(page,l);
    }
}
